<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">更新设备</label>
            <div class="layui-input-block">
                {foreach $select_list_plat as $k=>$v}
                <input type="radio" name="plat" value="{$k}" title="{$v}" {in name="k" value="$row.plat"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">更新端口</label>
            <div class="layui-input-block">
                <select name="port" lay-verify="required">
                    <option value=''></option>
                    {foreach $select_list_port as $k=>$v}
                    <option value='{$k}' {in name="k" value="$row.port"}selected=""{/in}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">更新包</label>
            <div class="layui-input-block layuimini-upload">
                <input name="url" class="layui-input layui-col-xs6" lay-verify="required"  placeholder="请上传更新包" value="{$row.url|default=''}">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="url" data-upload-number="one" data-upload-exts="zip" data-upload-icon="file" data-upload-disable-preview="0"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_url" data-upload-select="url" data-upload-number="one" data-upload-mimetype="*"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">更新包大小(MB)</label>
            <div class="layui-input-block">
                <input type="text" name="size" class="layui-input" lay-verify="required" placeholder="请输入更新包大小(MB)" value="{$row.size|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">版本号1.0.0</label>
            <div class="layui-input-block">
                <input type="text" name="version_name" class="layui-input" lay-verify="required" placeholder="请输入版本号1.0.0" value="{$row.version_name|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标识100</label>
            <div class="layui-input-block">
                <input type="text" name="version" class="layui-input" lay-verify="required" placeholder="请输入标识100" value="{$row.version|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">更新类型</label>
            <div class="layui-input-block">
                {foreach $select_list_type as $k=>$v}
                <input type="radio" name="type" value="{$k}" title="{$v}" {in name="k" value="$row.type"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">强制更新</label>
            <div class="layui-input-block">
                {foreach $select_list_is_force as $k=>$v}
                <input type="radio" name="is_force" value="{$k}" title="{$v}" {in name="k" value="$row.is_force"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">计划更新</label>
            <div class="layui-input-block">
                {foreach $select_list_is_plan as $k=>$v}
                <input type="radio" name="is_plan" value="{$k}" title="{$v}" {in name="k" value="$row.is_plan"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">计划更新时间</label>
            <div class="layui-input-block">
                <input type="text" name="plan_time" data-date="" data-date-type="datetime" class="layui-input"  placeholder="请输入计划更新时间" value="{$row.plan_time|default=''}">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">更新说明</label>
            <div class="layui-input-block">
                <textarea name="readme" class="layui-textarea" lay-verify="required" placeholder="请输入更新说明">{$row.readme|raw|default=''}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                {foreach $select_list_status as $k=>$v}
                <input type="radio" name="status" value="{$k}" title="{$v}" {in name="k" value="$row.status"}checked=""{/in}>
                {/foreach}
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>